<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Window Eval</title>
</head>
<body>
	<p>
		<iframe src="inner.html" frameborder="1" width="100%" height="300"></iframe>
	</p>
	<p>
		The following button must alert "object":
	</p>
	<input type="button" value="alert( typeof MyObject ) in the parent window" onclick="alert( typeof MyObject );" />
	<p>
		It works as expected with IE, Firefox and Opera.
	</p>
	<p>
		A possible workaround could be the following:
	</p>
	<pre>
		eval.call( window.parent, 'var MyObject = new Object();' ) ;
	</pre>
	<p>
		The above works well with Firefox and Opera, but doens't work with Safari and IE.
		Not even window.parent.eval.call helped. So, it seams there is no workaround for it.</p>
</body>
</html>
